package com.one.oa.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@SuppressWarnings("serial")
@Data
@TableName("t_sms")
@NoArgsConstructor
public class Sms {
    //序号，主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //手机号
    private String phone;
    //类型 1.注册 2.登录 3.密码 4.通知
    private Integer type;
    //内容
    private String info;
    //创建时间
    private Date createTime;

    public Sms(String phone, Integer type, String info) {
        this.phone = phone;
        this.type = type;
        this.info = info;
        this.createTime=new Date();
    }
}

